package oa.hleast.xswl.pojo.domain.pms;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import oa.hleast.common.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author: 00209
 * @date: 2021-06-10 17:09:57
 * @description: 用户优惠券表(PmsUserCoupon)实体类
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("用户优惠券表实体类")
public class PmsUserCoupon extends BaseEntity {
    @TableId(type = IdType.AUTO)
    @ApiModelProperty("")
    private Long id;

    @ApiModelProperty("优惠券Id")
    private Long couponId;

    @ApiModelProperty("用户Id")
    private Long userId;

    @ApiModelProperty("名称")
    private String name;

    @ApiModelProperty("主图")
    private String picUrl;

    @ApiModelProperty("优惠金额")
    private Long price;

    @ApiModelProperty("限定金额")
    private Long limitPrice;

    @ApiModelProperty("优惠券简介")
    private String intro;

    @ApiModelProperty("使用开始时间")
    private Date useStart;

    @ApiModelProperty("使用结束时间")
    private Date useEnd;

    @ApiModelProperty("使用时间")
    private Date useTime;

    @ApiModelProperty("来源 1: 平台发放， 2：自己领取, 3：积分兑换, 4: 积分抽奖")
    private Integer source;

    @ApiModelProperty("显示顺序")
    private Integer sort;
    @TableLogic(value = "0", delval = "1")
    @ApiModelProperty("删除标识  (0未删除 1已删除)")
    private Integer deleted;

}
